cmake_minimum_required(VERSION 3.31)
project(230_CeresCode)

set(CMAKE_CXX_STANDARD 17)

set(PROJECT_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(CMAKE_MODULE_PATH ${PROJECT_ROOT_DIR}/CMake)
include(utility)
#include(property)

set(OTSS_DIR ${PROJECT_ROOT_DIR}/otss)
set(CERES_DIR ${OTSS_DIR}/ceres)
set(EIGEN_DIR ${OTSS_DIR}/eigen)
set(GFLAGS_DIR ${OTSS_DIR}/gflags)
set(GLOG_DIR ${OTSS_DIR}/glog)

include_directories(${OTSS_DIR})

include_directories(${CERES_DIR}/include)
link_directories(${CERES_DIR}/lib)

include_directories(${EIGEN_DIR}/include/eigen3)

include_directories(${GFLAGS_DIR}/include)
link_directories(${GFLAGS_DIR}/lib)

include_directories(${GLOG_DIR}/include)
link_directories(${GLOG_DIR}/lib)

add_subdirectory(code)
